<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>demo3-12</title>
  <style>
    .block{
        display: inline-block;
        border: 1px solid;
    }
  </style>
</head>
<body>
  <script src="/js/vue.js"></script>
  <div id="app">
      <div class="block">不阻止默许行为</div>
      <div class="block" v-on:contextmenu.prevent="rightClick">组织默许行为</div>
  </div>
<br>
  <script>
   let app = new Vue({
   el:"#app",
   data:{ },
   methods: {
    rightClick:function(){
        alert("do somthing")
    }
   }
    })
  </script>
</body>
</html>